package com.example.javapoint.keywords.bool;

public class KeyBoolean {
    public static void main(String[] args) {
        int num = 7;
        boolean flag = false;
        for (int i = 2; i < num; i++) {
            if (num % i == 0) {
                flag = true;
                break;
            }
        }
        if(flag) {
            System.out.println("not prime");
        }else {
            System.out.println("prime");
        }
    }
}
